package com.gl.service.impl;

import com.gl.mapper.UserCountMapper;
import com.gl.pojo.entity.UserCount;
import com.gl.service.UserCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Service
public class UserCountServiceImpl implements UserCountService {

    @Autowired
    private UserCountMapper userCountMapper;
    @Override
    public List<UserCount> getUserCount(LocalDate start, LocalDate end) {
        return userCountMapper.getUserCount(start, end);
    }

    @Override
    public void insertUserCount(UserCount userCount) {
        userCountMapper.insertUserCount(userCount);
    }
}
